Integrand size = 14, antiderivative size = 7 \[ \int \frac {\cos (x)}{a-a \sin ^2(x)} \, dx=\frac {\text {arctanh}(\sin (x))}{a} \]
[Out]
Time = 0.03 (sec) , antiderivative size = 7, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3254, 3855} \[ \int \frac {\cos (x)}{a-a \sin ^2(x)} \, dx=\frac {\text {arctanh}(\sin (x))}{a} \]
[In]
[Out]
Rule 3254
Rule 3855
Rubi steps \begin{align*} \text {integral}& = \frac {\int \sec (x) \, dx}{a} \\ & = \frac {\text {arctanh}(\sin (x))}{a} \\ \end{align*}
Time = 0.00 (sec) , antiderivative size = 7, normalized size of antiderivative = 1.00 \[ \int \frac {\cos (x)}{a-a \sin ^2(x)} \, dx=\frac {\text {arctanh}(\sin (x))}{a} \]
[In]
[Out]
Time = 0.28 (sec) , antiderivative size = 8, normalized size of antiderivative = 1.14
method | result | size |
derivativedivides | \(\frac {\operatorname {arctanh}\left (\sin \left (x \right )\right )}{a}\) | \(8\) |
default | \(\frac {\operatorname {arctanh}\left (\sin \left (x \right )\right )}{a}\) | \(8\) |
parallelrisch | \(\frac {-\ln \left (\tan \left (\frac {x}{2}\right )-1\right )+\ln \left (\tan \left (\frac {x}{2}\right )+1\right )}{a}\) | \(22\) |
norman | \(\frac {\ln \left (\tan \left (\frac {x}{2}\right )+1\right )}{a}-\frac {\ln \left (\tan \left (\frac {x}{2}\right )-1\right )}{a}\) | \(25\) |
risch | \(\frac {\ln \left ({\mathrm e}^{i x}+i\right )}{a}-\frac {\ln \left ({\mathrm e}^{i x}-i\right )}{a}\) | \(29\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 20 vs. \(2 (7) = 14\).
Time = 0.28 (sec) , antiderivative size = 20, normalized size of antiderivative = 2.86 \[ \int \frac {\cos (x)}{a-a \sin ^2(x)} \, dx=\frac {\log \left (\sin \left (x\right ) + 1\right ) - \log \left (-\sin \left (x\right ) + 1\right )}{2 \, a} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 19 vs. \(2 (5) = 10\).
Time = 0.11 (sec) , antiderivative size = 19, normalized size of antiderivative = 2.71 \[ \int \frac {\cos (x)}{a-a \sin ^2(x)} \, dx=- \frac {\log {\left (\sin {\left (x \right )} - 1 \right )}}{2 a} + \frac {\log {\left (\sin {\left (x \right )} + 1 \right )}}{2 a} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 21 vs. \(2 (7) = 14\).
Time = 0.24 (sec) , antiderivative size = 21, normalized size of antiderivative = 3.00 \[ \int \frac {\cos (x)}{a-a \sin ^2(x)} \, dx=\frac {\log \left (\sin \left (x\right ) + 1\right )}{2 \, a} - \frac {\log \left (\sin \left (x\right ) - 1\right )}{2 \, a} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 23 vs. \(2 (7) = 14\).
Time = 0.31 (sec) , antiderivative size = 23, normalized size of antiderivative = 3.29 \[ \int \frac {\cos (x)}{a-a \sin ^2(x)} \, dx=\frac {\log \left (\sin \left (x\right ) + 1\right )}{2 \, a} - \frac {\log \left (-\sin \left (x\right ) + 1\right )}{2 \, a} \]
[In]
[Out]
Time = 13.74 (sec) , antiderivative size = 7, normalized size of antiderivative = 1.00 \[ \int \frac {\cos (x)}{a-a \sin ^2(x)} \, dx=\frac {\mathrm {atanh}\left (\sin \left (x\right )\right )}{a} \]
[In]
[Out]